package com.block.datapush.service.apipush.utils;

import cn.hutool.core.util.StrUtil;
import com.block.common.enums.BaseTypeInfoEnum;

/**
 *
 */
public class ZhengShengUtil {

    public static String getloan(String loan) {
        if (StrUtil.equals(BaseTypeInfoEnum.LoanAmount.la001.getValue(), loan)) {
            return "1万";
        } else if (StrUtil.equals(BaseTypeInfoEnum.LoanAmount.la002.getValue(), loan)) {
            return "3万";
        } else if (StrUtil.equals(BaseTypeInfoEnum.LoanAmount.la003.getValue(), loan)) {
            return "5万";
        } else if (StrUtil.equals(BaseTypeInfoEnum.LoanAmount.la004.getValue(), loan)) {
            return "10万";
        }
        return "20万";

    }



    //逾期
    public static String getYuqi(String yuqi) {
        if (StrUtil.equals(yuqi, BaseTypeInfoEnum.Yuqi.yq001.getValue())) {
            return "2";
        }
        return "1";
    }

    //保险
    public static String getBaoxian(String baoxian) {
        if (StrUtil.equals(baoxian, BaseTypeInfoEnum.Baoxian.bx001.getValue())) {
            return "2";
        }
        return "1";
    }

    //房产
    public static String getHouse(String house) {
        if (StrUtil.equals(house, BaseTypeInfoEnum.House.hu001.getValue())) {
            return "2";
        }else if (StrUtil.equals(house, BaseTypeInfoEnum.House.hu002.getValue())) {
            return "3";
        }else if (StrUtil.equals(house, BaseTypeInfoEnum.House.hu003.getValue())) {
            return "5";
        }
        return "6";
    }
    //车产
    public static String getCar(String car) {
        if (StrUtil.equals(car, BaseTypeInfoEnum.Car.car001.getValue())) {
            return "2";
        }
        return "1";
    }

    //社保和公积金
    public static String getGjj( String gjj) {
        if (StrUtil.equals(gjj, BaseTypeInfoEnum.Gjj.gjj001.getValue())) {
            return "2";
        }
        return "1";

    }
    public static String getshebao( String shebao) {
        if (StrUtil.equals(shebao, BaseTypeInfoEnum.Shebao.sb001.getValue())) {
            return "2";
        }
        return "1";

    }



}
